package renguanyu.app.tools.util;

import java.io.IOException;

import javafx.fxml.FXMLLoader;
import renguanyu.app.tools.App;

public class FxmlUtl {

	public static <T> T load(String fxmlPath) {
		FXMLLoader loader = new FXMLLoader();
		try {
			return loader.load(App.class.getResourceAsStream(fxmlPath));
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}

}
